<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
     <style type="text/css">
     .content{
        width: 200px;
        height: 80px;
        text-align: left;

      }
    </style>
    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" role="form" action="{:U('Food/edit')}" method="post">
                            <input type="hidden" name="id" value="{$data['id']}" />
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 保健老师 </label>
                                <div class="col-sm-9">
                                    <select id="doctor" disabled="disabled" name="doctor" class="multiselect">
                                        <option value="0">--请选择保健老师--</option>
                                        <volist name="teacher"  id="val">
                                            <option <if condition="$data['doctor'] eq $val['uid']">selected</if> value="{:$val['uid']}">{:$val['name']}</option>
                                        </volist>
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 标题 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="title" id="title" class="col-xs-10 col-sm-5" disabled="disabled" placeholder="如：第2周食谱安排" value="{:$data['title']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle"></span>
                                            </span>
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 食谱表 </label>
                                <div class="col-xs-9 col-sm-9" id="course">
                                        <div id='time'></div>
                                        <!-- <a href="javascript:void(0);" id="last-week">上一周</a><a href="javascript:void(0);" id="next-week">下一周</a> -->
                                        <table id="monitor" class="table table-striped table-bordered">
                                            <volist name="data['time']" id='val'>    
                                                <tr>
                                                    <td><input type="text" readonly="readonly" class='time' value="{$val['time']|date='Y-m-d',###}-星期{:date('N',$val['time'])}" /></td>
                                                    <td>早餐</td>
                                                    <td><textarea class="content" readonly="readonly">{$val.bf}</textarea><br />用餐时间<input type="text" name="bf_time[]" class="timeRange" value="{$val.bf_time}" placeholder="00:00" readonly="readonly" /></td>
                                                    <td>上午加餐</td>
                                                    <td><textarea class="content" readonly="readonly">{$val.bf_ext}</textarea><br />用餐时间<input type="text" name="bf_ext_time[]" value="{$val.bf_ext_time}" readonly="readonly" placeholder="00:00" class="timeRange" /></td>
                                                    <td>午餐</td>
                                                    <td><textarea class="content" readonly="readonly">{$val.lunch}</textarea><br />用餐时间<input type="text" name="l_time[]" class="timeRange" value="{$val.l_time}" readonly="readonly" placeholder="00:00" /></td>
                                                    <td>下午加餐</td>
                                                    <td><textarea class="content" readonly="readonly">{$val.l_ext}</textarea><br />用餐时间<input type="text" name="l_ext_time[]" value="{$val.l_ext_time}" readonly="readonly" placeholder="00:00" class="timeRange" /></td>
                                                    <td>晚餐</td>
                                                    <td><textarea class="content" readonly="readonly">{$val.dinner}</textarea><br />用餐时间<input type="text" name="d_time[]" class="timeRange" value="{$val.d_time}" readonly="readonly" placeholder="00:00" /></td>
                                                </tr>
                                            </volist>
                                        </table>
                                </div>
                            </div>

                            <div class="space-4"></div>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
<script type="text/javascript">
   
</script>
</body>
</html>
